package com.hzsai.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: hzsai
 * @date : 2020/3/10/ 0:38
 **/
@Controller
public class SocketIOTestController {

    @GetMapping("/")
    public String socketIOTest() {
        return "index";
    }

//    @GetMapping("/{pageUrl}")
//    public String getPage(@PathVariable String pageUrl) {
//        return pageUrl;
//    }

    @ResponseBody
    @GetMapping("/springlearn/helloistio")
    public String sayHi() {
        return "Hello, Istio";
    }
}
